//
//  KABMallProDetOwnerTCell.m
//  kabu
//
//  Created by XiangDongMBP on 2017/3/7.
//  Copyright © 2017年 East. All rights reserved.
//

#import "KABMallProDetOwnerTCell.h"
#import <YYWebImage.h>
#import "KABModel.h"

@implementation KABMallProDetOwnerTCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.portraitImgView.layer.masksToBounds = YES;
    self.portraitImgView.layer.cornerRadius = CGRectGetWidth(self.portraitImgView.bounds) / 2.0;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)configViewWithProDetail:(KABMallProDetail *)proDetail {
    [self.portraitImgView yy_setImageWithURL:[NSURL URLWithString:proDetail.shop_ower_head_image_url]
                                 placeholder:[KABDefaultVarModel sharedInstance].smallDefaultImg];
    self.nameLabel.text = proDetail.shop_owner;
    self.autographLabel.text = proDetail.shop_owner_sign;
    self.proDesLabel.text = nil;
}

@end
